// 时间组管理
import request from '@/router/axios'

//展示表格
export function passIndexObj(query) {
    return request({
        url: '/campus/scheme/page',
        method: 'get',
        params: query
    })
}

//添加
export function addPassObj(obj) {
    return request({
        url: '/campus/scheme',
        method: 'post',
        data: obj
    })
}

//修改前获取的查询接口
export function beforeEditObj(obj) {
    return request({
        url: 'campus/scheme/editPage/' + obj.schemeId,
        method: 'get',
        params: obj
    })
}

//修改
export function editPassObj(obj) {
    return request({
        url: '/campus/scheme',
        method: 'put',
        data: obj
    })
}

//删除
export function delPassObj(id) {
    return request({
        url: '/campus/scheme/' + id,
        method: 'delete'
    })
}




